package com.maimao.core.constant;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/11/27 10:13 下午
 */
public class Constants {
    public static final String USER_TOKEN_SYS = "user_token_sys";

    public static final String USER_TOKEN_WEB = "user_token_web";


    public static final String ID = "id";

    public static final String USERNAME = "username";

    public static final String AVATAR = "avatar";

    public static final String TYPE = "type";

    public static final String AUTHORITIES = "authorities";

    public static final Integer STATUS_1 = 1;

    /**
     * 资源类型 0 左侧导航菜单(无路由)1 菜单 2 按钮 3读写
     */
    public static final int LEFT_NAV = 0;

    public static final String EMPTY = "";

    public static final int MENU = 1;

    public static final int BUTTON = 2;

    public static final int READ_WRITE = 3;

    public static final List<String> READ_WRITE_LIST = new ArrayList<String>() {{
        addAll(Arrays.asList("add", "update", "delete", "read"));
    }};
    public static final Integer MENU_BASE = 29;

    public static final Integer SUPER_ADMIN = 1;

    public static final Integer STATUS_0 = 0;

    public static final char UNDER_LINE = '_';

    public static final String UNDER_LINE_STR = "_";

    public static final char MIDDLE_LINE = '-';

    public static final String MIDDLE_LINE_STR = "-";

    public static final Integer STATUS_ALL = -1;

    public static final String DOT = ".";

    public static final Integer ONE = 1;

    public static final Integer NEGATIVE_ONE = -1;

    public static final String COMMA = ",";

    public static final String LOGIN_TYPE = "type";

    public static final String OAUTH_TOKEN = "/oauth/token";

    public static final Integer ZERO = 0;

    public static final String BLANK = " ";

    public static final Integer TWO = 2;

    public static final Integer THREE = 3;

    public static final Integer TEN = 10;

    public static final String NEW_LINE = "\n";

    public static final String CH_MAOHAO = "：";

    public static final String SHOP_ID = "shopId";

    public static final String REAL_NAME = "realName";

    /**
     * 商品审核权限ID
     */
    public static final Integer GOODS_CHECK_RESOURCE_ID = 12;

    public static final char STAR = '*';

    public static final char AT = '@';

}
